<?php

namespace app\common\model;

/**
 * [VideoCate  佛乐分类表]
 * @author [C。]
 * @return html
 */
class VideoCate extends Base
{
    protected $name = 'videocate';
    /**
     * 根据条件获取相应字段
     * @param array $param
     */
    public function getConditionByFields($map,$field='*') {
        $order = ['sort' => 'asc'];
        $result = $this->field($field)->where($map)->order($order)->select()->toArray();
        return $result;
    }
}